import service from "@/utils/fetch";
const post = {
  //经营类目
  businessCategory(params) {
    return service({
      method: "get",
      data: params,
      url: "/api/skuClassify/businessCategory",
    });
  },

  //经营类目-分页
  getSkuClassify(params) {
    return service({
      method: "get",
      params,
      url: "/api/skuClassify/",
    });
  },

  // 修改商品分类
  updateBusinessCategory(params) {
    return service({
      method: "put",
      data: params,
      url: "/api/skuClassify/",
    });
  },

  // 修改商品分类
  deleteBusinessCategory(params) {
    return service({
      method: "delete",
      data: params,
      url: "/api/skuClassify/",
    });
  },

  // 新增商品分类
  addBusinessCategory(params) {
    return service({
      method: "post",
      data: params,
      url: "/api/skuClassify/",
    });
  },

};

export default post;
